<script>
	export default {
		onLaunch: function() {
			// if(!this.$store.state.isLogin) uni.redirectTo({
			// 	url:'/pages/common/login'
			// })
			this.init();
		},
		onShow: function() {

		},
		onHide: function() {

		},
		methods: {
			async init() {
				await this.getCompanyInfo()
				// await this.getInitData()
			},
			getCompanyInfo() {
				return new Promise((resolve, reject) => {
					this.$store.dispatch('getCompanyInfo')
					resolve()
				})
			},
			getInitData() {
				return new Promise((resolve, reject) => {
					this.$store.dispatch('getInitData')
					resolve()
				})
			},
		}
	}
</script>
<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
	@import "common/demo.scss";
	@import "static/common/css/flex.scss";
	@import "static/common/css/common.css";
</style>